package org.idea.spring.ioc.service;

import org.idea.spring.ioc.bean.User;
import org.idea.spring.ioc.dao.UserDao;

/**
 * @Author idea
 * @Date created in 10:56 下午 2020/4/27
 */
public class UserService2Impl implements UserService2 {

    private UserDao userDao;

    public void setUserDao(UserDao userDao){
        this.userDao = userDao;
    }

    @Override
    public void find() {
        User user = userDao.findOne();
        System.out.println(user);
    }
}
